#ifndef ASGUICENTER_H
#define ASGUICENTER_H

#include <QObject>
#include <QHash>


class QTabWidgetEx;
class ASGuiFrame : public QObject
{
	Q_OBJECT

public:
	ASGuiFrame(QObject *parent);
	~ASGuiFrame();

	void		initTabWidgetManager();
	void		openTabWidget(int nIndex);
	void		openTabWidget(QWidget* pWidget);
	void		closeTabWidget(QWidget* pWidget);
	QWidget*	getTabWidget(int nIndex);
	QWidget*	getMainWidget();
	QString		getTabWidgetTitle(int nIndex);

	void		updateStatusBar();
protected:
	void		timerEvent(QTimerEvent * event);

public:
	QTabWidgetEx*		m_pTabWidget;
	QWidget*			m_pStatusBar;
	QWidget*			m_pMainWidget;

private:
	
	QLabel*				m_pTimeLabel;
	QHash<int,QString>	m_storeAllTabInfo;
	QMap<int,QWidget*>	m_nMapModifyWidget;
	int					m_nTimerId;
	QString				m_strInfo;

	protected slots:
		void		onCloseTabWidget(int);
};

#endif // ASGUICENTER_H
